<!--
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-12-11 14:46:54
 * @LastEditors: GGB
 * @LastEditTime: 2021-12-11 18:34:29
-->

<template>
  <h1>{{ msg }}</h1>
  <p @click="$store.commit('add')">{{ $store.state.counter }}</p>
  <a>test global style</a>
  <el-button type="primary">你好呀</el-button>
</template>
<script setup>
import { ref } from "vue";
import request from "utils/request";
// fetch("/api/getUser")
//   .then(res => res.json())
//   .then(data => {
//     console.log(data);
//   });
try {
  const users = await request("/getUser");
  console.log(users);
} catch (err) {
  console.log(err);
}
defineProps({
  msg: String,
});

const count = ref(0);
</script>
